<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">
            <div class="layui-form-item">
                <label class="layui-form-label">标题 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <div id="container" type="text/plain" name="title" style="width: 100%"></div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">选项 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <div id="option" type="text/plain" name="option" style="width: 100%"></div>
                    <div class="layui-form-mid layui-word-aux">请用双斜杠 “//” 隔开</div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">解析</label>
                <div class="layui-input-block">
                    <div id="parse" type="text/plain" name="parse" style="width: 100%"></div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">类型 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <select name="type" >
                        <option value="1" selected>单选</option>
                        <option value="2" >多选</option>
                        <option value="3" >判断</option>
                        <option value="4" >简答</option>
                    </select>
                </div>
                <label class="layui-form-label">栏目 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <select name="category_id" >
                        {volist name='cateList' id='v'}
                        <option value="{$v.id}" >{$v.name}</option>
                        {/volist}
                    </select>
                </div>
                <label class="layui-form-label">科目 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <select name="subject_id" >
                        {volist name='subjectList' id='v'}
                        <option value="{$v.id}" >{$v.name}</option>
                        {/volist}
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">分值 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="score" value="0.1">
                </div>
                <label class="layui-form-label">选项答案 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="answer" >
                </div>
                <div class="layui-text">多个请用英文“,”隔开</div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden" name="pid" value="{$level}">
                    {if $paperId}
                    <input type="hidden" name="paper_id" value="{$paperId}">
                    {/if}
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <a href="javascript:history.go(-1);" class="layui-btn layui-btn-primary" >返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
